let babel = require('./babel.runtime')
let alias = require('../config/alias.conf')
let pkg = require('../../package.json')
babel.plugins.push(
    ["module-resolver", {
        "root": ["."],
        // "cwd": "packagejson",
        "alias": alias
    }],
    // "dynamic-import-node",
    "dynamic-import-node-sync"
)
module.exports = babel

let cc = {
    "presets": [
        ["env", {
            "targets": {
                node: pkg.engines.node.match(/(\d+\.?)+/)[0],
            },
            modules: false,
            useBuiltIns: false,
            debug: false,
        }],
    ],
}
// { "libraryName": "antd", "libraryDirectory": "es", "style": false }
